package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入住管理对象 sys_check_in
 * 
 * @author ruoyi
 */
public class SysCheckIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 老人用户ID */
    @Excel(name = "老人用户ID")
    private Long elderUserId;

    /** 老人姓名 */
    @Excel(name = "老人姓名")
    private String elderName;

    /** 房间ID */
    @Excel(name = "房间ID")
    private Long roomId;

    /** 房间名称 */
    @Excel(name = "房间名称")
    private String roomName;

    /** 入住时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkInTime;

    /** 预计退房时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预计退房时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expectedCheckOutTime;

    /** 实际退房时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实际退房时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date actualCheckOutTime;

    /** 状态（0正常 1已退房） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=已退房")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setElderUserId(Long elderUserId) 
    {
        this.elderUserId = elderUserId;
    }

    public Long getElderUserId() 
    {
        return elderUserId;
    }

    public void setElderName(String elderName) 
    {
        this.elderName = elderName;
    }

    public String getElderName() 
    {
        return elderName;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setRoomName(String roomName) 
    {
        this.roomName = roomName;
    }

    public String getRoomName() 
    {
        return roomName;
    }

    public void setCheckInTime(Date checkInTime) 
    {
        this.checkInTime = checkInTime;
    }

    public Date getCheckInTime() 
    {
        return checkInTime;
    }

    public void setExpectedCheckOutTime(Date expectedCheckOutTime) 
    {
        this.expectedCheckOutTime = expectedCheckOutTime;
    }

    public Date getExpectedCheckOutTime() 
    {
        return expectedCheckOutTime;
    }

    public void setActualCheckOutTime(Date actualCheckOutTime) 
    {
        this.actualCheckOutTime = actualCheckOutTime;
    }

    public Date getActualCheckOutTime() 
    {
        return actualCheckOutTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("elderUserId", getElderUserId())
            .append("elderName", getElderName())
            .append("roomId", getRoomId())
            .append("roomName", getRoomName())
            .append("checkInTime", getCheckInTime())
            .append("expectedCheckOutTime", getExpectedCheckOutTime())
            .append("actualCheckOutTime", getActualCheckOutTime())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 